package com.tengju.settlement.infrastructure.persistence.redis;

import com.tengju.settlement.infrastructure.persistence.redis.dataobject.RedisKeyObject;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class GuideStatusCacheRepository {

    @Autowired
    private RedisService redisService;

    /**
     * 设置引导状态
     */
    public boolean setGuideStatus(RedisKeyObject key, Long idCode){
        return redisService.setValue(key,idCode) == 1;
    }
}
